<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<%
	String bathPath = request.getContextPath();
	pageContext.setAttribute("bathPath", bathPath);
%>
<meta charset="utf-8">
<title>门禁管理系统New</title>
<script type="text/javascript" src="${bathPath}/js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="${bathPath}/js/ajaxSessionOut.js" ></script>
<link type="text/css" rel="stylesheet" href="${bathPath}/css/indexNew.css?v=g"/>

<!-- layer -->
<link type="text/css" rel="stylesheet" href="${bathPath}/js/layer/skin/layer.css"/>
<script type="text/javascript" src="${bathPath}/js/layer/layer.js" ></script>

<!-- validation -->
<script type="text/javascript" src="${bathPath}/js/jquery-validation/jquery.validate.js"></script>

<!-- 改变提示框按钮的颜色 -->
<style type="text/css">
	.my-skin .layui-layer-btn a {
	background-color:#009688;
	}
</style>
</head>

<body style="background-image:url(${bathPath}/image/background.png);">
	<div id="zong">
    	<div class="logo">
        	<img src="${bathPath}/image/logo2.png" style="width:156px; height:49px;"/>
        </div>
        
        <div class="wKuang" id="wKuangG">
        	<!--左边-->
        	<div class="wK-leftMenuBg" id="wK-leftMenuBgG">
            	<div class="wKuangToo">
                    <div class="wK-leftName"><span>系统管理</span></div>
                    <div class="wK-leftMain" onclick="manageuser()"  id="xitong1"><a href="#">操作员管理</a></div>
                    <div class="wK-leftMain" onclick="managerole()"  id="xitong2"><a href="#">角色管理</a></div>
                    <div class="wK-leftMain" onclick="managepage()"  id="xitong3"><a href="#">页面管理</a></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>基础资料</span></div>
                    <div class="wK-leftMain" onclick="aDKNetGroup()"  id="jiC1"><a href="#">组织机构设置</a></div>
                    <div class="wK-leftMain" onclick="aDKDept()"  id="jiC2"><a href="#">部门设置</a></div>
                    <div class="wK-leftMain" onclick="aDKUserInfo()"  id="jiC3"><a href="#">人员资料</a></div>
                    <div class="wK-leftMain" onclick="aDKCardInfo()"  id="jiC4"><a href="#">卡片管理</a></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>设备参数</span></div>
                    <div class="wK-leftMain" onclick="aDKController()"  id="sheB1"><a href="#">控制器管理</a></div>
                    <div class="wK-leftMain" onclick="aDKDoor()"  id="sheB2"><a href="#">门参数管理</a></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>通行管理</span></div>
                    <div class="wK-leftMain" onclick="aDKPowerGroup()"  id="tongX1"><a href="#">权限组设置</a></div>
                    <div class="wK-leftMain" onclick=""  id="tongX2"><a href="#">门点权限管理</a></div>
                    <div class="wK-leftMain" onclick="aDKUserGroup()"  id="tongX3"><a href="#">人员权限管理</a></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>监控管理</span></div>
                    <div class="wK-leftMain" onclick=""  id="jianK1"><a href="#">门状态查询</a></div>
                    <div class="wK-leftMain" onclick=""  id="jianK2"><a href="#">刷卡记录查询</a></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>考勤管理</span></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>巡更管理</span></div>
                </div>
                <div class="wKuangToo">
                    <div class="wK-leftName"><span>访客管理</span></div>
                </div>
            </div>
            
            <!--右边导航-->
            <div class="wK-rightDhang">
            	<div class="wK-rightDhangToo">
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>系统管理<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-8.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>基础资料<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-1.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>设备参数<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-2.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>通行管理<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-3.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>监控管理<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-4.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>考勤管理<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-5.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>巡更管理<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-6.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                    <a href="#" class="active" >
                        <div class="wK-rightDhangThree" align="center" id="ji">
                            <table>
                                <tr><td>访客管理<td><tr>
                                <tr><td><div class="" ><img src="${bathPath}/image/button-7.png" style="width:42px; height:42px;"/></div><td><tr>
                            </table>
                        </div>
           	 		</a>
                </div>
            </div>
            
            
            <!--右边主体-->
            <div class="wK-rightMain" id="wK-rightMainG">
            	<iframe id="myIframe" frameborder="0" style="background-color:white;border-radius:20px;width:100%;" src="${bathPath}/emptyPage.jsp"></iframe>
            </div>
        </div>
        
        
        <!--底部-->
        <div class="bottom">专业门禁管理软件 SACM-V2.0 | 版权所有2019费浦智能科技有限公司</div>
    </div>
    
    <!--竖条导航栏部分-->
    <div class="shuDhang" id="shuDhangG">
    	<div class="shuDhangToo" align="center">
	    	<a href="http://www.adkfp.com/" target="_Blank" title="费浦官网" > 
	        	<img src="${bathPath}/image/house.png" style="width:17px; height:17px;" />
	       	</a>
	    </div>
	    <div class="shuDhangToo" align="center" title="锁定系统">
	        <img src="${bathPath}/image/lock.png" style="width:15px; height:16px;" id="suoDing"/>
	    </div>
	    <div class="shuDhangToo" align="center" title="密码修改" >
	      	<img src="${bathPath}/image/password.png" style="width:16px; height:16px;" id="repassword" />
	    </div>
	    <div class="shuDhangToo" align="center" title="退出系统" >
	      	<img src="${bathPath}/image/exit.png" style="width:15px; height:15px;" id="loginOut"/>
	    </div>
    </div>
    <script type="text/javascript">
	
	//div高度自适应屏幕
	window.onload=function (){
		function auto_height()
		{
			document.getElementById("wKuangG").style.height=document.documentElement.clientHeight-120+"px";
			document.getElementById("wK-leftMenuBgG").style.height=document.documentElement.clientHeight-120+"px";
			document.getElementById("wK-rightMainG").style.height=document.documentElement.clientHeight-190+"px";
			document.getElementById("myIframe").style.height=document.documentElement.clientHeight-190+"px";
			document.getElementById("shuDhangG").style.height=document.documentElement.clientHeight-8+"px";
		}
		auto_height();
		onresize=auto_height;
	}
	
	
	<!--点击一级目录跳转二级目录-->
	$(function () {
        $('.wK-rightDhangToo a').click(function () {
            $(this).addClass('active').siblings().removeClass('active');
            $(".wK-leftMenuBg .wKuangToo").eq($(this).index()).show().siblings().hide();
        })
    }) 
	
	
	//点击改变左侧菜单div颜色
    $('.wK-leftMenuBg').on('click','.wK-leftName',function(){
            $(this).addClass("wK-leftMain-bianse").siblings().removeClass("wK-leftMain-bianse");
        });
	
	
	//调整iframe尺寸
	var topIframeHeight = 0;
	
	function iframeResize(){
		var hei = $("body").height()-61;
		$("#myIframe").height(hei);
		topIframeHeight = hei-3;
	}
	//操作员管理
	function manageuser(){
		$("#myIframe").attr("src","${bathPath}/aDKManageUser/index.action");
	}
	//角色管理
	function managerole(){
		$("#myIframe").attr("src","${bathPath}/aDKManageRole/index.action");
	}
	//页面管理
	function managepage(){
		$("#myIframe").attr("src","${bathPath}/aDKManagePage/pageList.action");
	}
	//组织机构页面
	function aDKNetGroup(){
		$("#myIframe").attr("src","${bathPath}/aDKNetGroup/tree.action");
	}
	/* function aDKNetGroup(){
		$("#myIframe").empty().load("${bathPath}/aDKNetGroup/tree.action",function(){
			$(this).loaded;
		});
	} */ 
	//部门信息页面
	function aDKDept(){
		$("#myIframe").attr("src","${bathPath}/aDKDept/index.action");
	}
	//人员资料
	function aDKUserInfo(){
		$("#myIframe").attr("src","${bathPath}/aDKUserInfo/index.action");
	}
	//卡片管理
	function aDKCardInfo(){
		$("#myIframe").attr("src","${bathPath}/aDKCardInfo/index.action");
	}
	//控制器管理
	function aDKController(){
		$("#myIframe").attr("src","${bathPath}/aDKController/index.action");
	}
	//门参数管理
	function aDKDoor(){
		$("#myIframe").attr("src","${bathPath}/aDKDoor/index.action");
	}
	//权限组设置
	function aDKPowerGroup(){
		$("#myIframe").attr("src","${bathPath}/aDKPowerGroup/index.action");
	}
	//权限组设置
	function aDKUserGroup(){
		$("#myIframe").attr("src","${bathPath}/aDKUserGroup/index.action");
	}
    </script>
</body>
</html>
